<?xml version='1.0' encoding='UTF-8'?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	
	<div class="menu">
		<p>
			#{app.date}
			<br />
			<h:outputFormat value="#{msg.menuWelcome}">
				<f:param value="#{currentUser.trigram}" />
			</h:outputFormat>
		</p>
	</div>

	<p:menu>

	    <p:submenu label="#{msg.menuGestionDC}" rendered="#{sess.admin}">
			<p:menuitem label="#{msg.menuDCListe}" url="/pages/req-list.jsf"/>
			<p:menuitem label="#{msg.menuDCATraiter}" url="/pages/req-nonHandled.jsf" />
			<p:menuitem label="#{msg.menuDCARattacherProjet}" url="/pages/req-nonAttached.jsf" />
			<p:menuitem label="#{msg.menuDCRecherche}" url="/pages/req-search.jsf" />
	    </p:submenu>

	    <p:submenu label="#{msg.menuGestionTaches}" rendered="#{sess.admin}">
			<p:menuitem label="#{msg.menuTachesListe}"/>
			<p:menuitem label="#{msg.menuTachesARattacherProjet}"/>
			<p:menuitem label="#{msg.menuTachesNonAffectees}"/>
			<p:menuitem label="#{msg.menuTacheCreation}"/>
			<p:menuitem label="#{msg.menuTacheRecherche}"/>
	    </p:submenu>

	    <p:submenu label="#{msg.menuGestionProjets}" rendered="#{sess.admin}">
			<p:menuitem label="#{msg.menuProjetListe}" url="/pages/pro-list.jsf"/>
			<p:menuitem label="#{msg.menuProjetCreation}" />
			<p:menuitem label="#{msg.menuProjetReporting}" url="/pages/pro-reporting.jsf"/>
	    </p:submenu>

	    <p:submenu label="#{msg.menuGestionImputations}">
			<p:menuitem label="#{msg.menuImputationsQuotidiennes}" url="/pages/imp-weekly.jsf"/>
			<p:menuitem label="#{msg.menuRechercheTache}" url="/pages/imp-search.jsf"/>
			<p:menuitem label="#{msg.menuCreationCRA}" url="/pages/imp-report.jsf" />
	    </p:submenu>
	</p:menu>
	
	<ui:remove>
	<!--

<p:commandLink action="#{requestListPage.loadNewRequests}"/>
<p:commandLink action="#{requestListPage.loadToBeTreated}"/>
<p:commandLink action="#{requestListPage.loadNonAttached}"/>
 <p:commandLink action="REQ_SEARCH"/>
 
	<div id="menuderoulant" class="menu">
		<dl>
		</dl>
	</div>
			
				
				<dt onclick="montre('maj', true);">
					<h:outputText value="#{msg.menuSynchroBaseCliente}"/>
				</dt>
				<dd id="maj">
					<ul>
						<li>
							<h:commandLink action="#{DCControlerMB.loadUpdate}">
								<h:outputText value="#{msg.menuMAJDelfi}" />
							</h:commandLink>
						</li>
					</ul>
				</dd>
				
				
				<dt onclick="montre('rep', true);">
					<h:outputText value="#{msg.menuReporting}"/>
				</dt>
				<dd id="rep">
					<ul>
						<li>
							<h:commandLink action="GOTO_REP_CHOIX">
								<h:outputText value="#{msg.menuChoixRapports}" />
							</h:commandLink>
						</li>
					</ul>
				</dd>				
				
			</t:div>

			<t:div>
				<dt onclick="montre('imp', true);">
					<h:outputText value="#{msg.menuGestionImputations}" />
				</dt>
				<dd id="imp">
					<ul>
						<li>
							<h:commandLink action="#{imputationControlerMB.loadImputations}">
								<h:outputText value="#{msg.menuImputationsQuotidiennes}" />
							</h:commandLink>
						</li>
						<li>
							<h:commandLink action="#{imputationControlerMB.loadRecherche}">
								<h:outputText value="#{msg.menuRechercheTache}" />
							</h:commandLink>
						</li>
						<li>
							<h:commandLink action="#{imputationControlerMB.loadCRA}">
								<h:outputText value="#{msg.menuCreationCRA}" />
							</h:commandLink>
						</li>
					</ul>
				</dd>	
			</t:div>

			<t:div rendered="#{loginBB.admin}">
				<dt onclick="montre('adm', true);">
					<h:outputText value="#{msg.menuAdministration}" />
				</dt>
				
				<dd id="adm">
					<ul>
						<li>
							<h:commandLink action="#{adminControlerMB.loadCreation}">
								<h:outputText value="#{msg.menuAjouterCollab}" />
							</h:commandLink>
						</li>
						<li>
							<h:commandLink action="#{adminControlerMB.loadExports}">
								<h:outputText value="#{msg.menuExport}" />
							</h:commandLink>
						</li>
						<li>
							<h:commandLink action="#{adminControlerMB.loadMoniteur}">
								<h:outputText value="#{msg.menuMoniteur}" />
							</h:commandLink>
						</li>
					</ul>
				</dd>
			</t:div>

		</dl>
	</div>
	-->
	</ui:remove>
	<!-- Menu deroulant -->

	<div class="menu">
		<p>
			<h:commandLink action="#{sess.logout}">
				<h:outputText styleClass="txtGras" value="#{msg.menuDeconnexion}" />
			</h:commandLink>
		</p>
	</div>
</ui:composition>